package com.cn.ant.modules.wechat.dao;

import com.cn.ant.common.persistence.MyBatisRepository;
import com.cn.ant.modules.wechat.entity.WeiXinNewListType;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 消息列表类型Mapper接口
 * @author AntDream
 * @version 2015-07-30
 */
@MyBatisRepository
public interface WeiXinNewListTypeMapper{

    public int delete(String id);

    public int insert(WeiXinNewListType record);

    public WeiXinNewListType get(String id);

    public int update(WeiXinNewListType record);

    public List<WeiXinNewListType> query(Map<String,Object> param);

    public int queryCount(Map<String, Object> param);

    public List<WeiXinNewListType> queryByLoginUser(@Param("officeId") String officeId);

    public WeiXinNewListType queryByCode(@Param("typeCode") String typeCode);


}
